setGlobalDuration(10)

env = genAdsr()
amp = genLineseg([.001,10,1,10,.001])
vib = genWaveform([1,.5,.1,])

lfo2(bus='amp', frequency=.2, amplitude=1, offset=0, table=amp)
lfo2(bus='vib', frequency=5, amplitude=.05, offset=1, table=vib)
square(pitch=100, envelope=env, pitchVar='vib', amplitudeVar='amp')

startCsound()
